import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';

@Component({
  selector: 'app-inspectionrecordinfo',
  templateUrl: './inspectionrecordinfo.component.html',
  styleUrls: ['./inspectionrecordinfo.component.css']
})
export class InspectionrecordinfoComponent implements OnInit {
 type;
  constructor(private routerdata: ActivatedRoute) { }

  ngOnInit() {
    this.routerdata.params.subscribe((params: Params) => {this.type = params['type']; } );
    console.log(this.type);
  }

}
